﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">
<jsp:include page="include/resource-head.jsp"/>

<body>
<jsp:include page="include/common-top.jsp"/>

<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <jsp:include page="include/common-menu.jsp"/>
        <div class="main-content">
            <div class="page-content">
                <c:if test="${sessionAdmin.type == 'admin'}">
                    WELCOME
                </c:if>
                <c:if test="${sessionAdmin.type != 'admin'}">
                    <div class="row">
                        <c:forEach items="${newsList}" var="item">

                            <div class="col-sm-6 col-md-4">
                                <div class="thumbnail" onclick="location.href='/news/info/${item.id}.do'">
                                    <img src="${item.img}" style="height: 150px;width: 100%">
                                    <div class="caption">
                                        <h3>${item.name}</h3>
                                        <p>${item.descript}</p>
                                    </div>
                                </div>
                            </div>

                        </c:forEach>
                    </div>
                </c:if>

            </div><!-- /.page-content -->
        </div><!-- /.main-content -->
    </div><!-- /.main-container -->
</body>
<jsp:include page="include/resource-script.jsp"/>
</html>

